cmake_minimum_required(VERSION 3.27)
project(OpenCV_init)

set(CMAKE_CXX_STANDARD 23)

find_package(OpenCV REQUIRED)

add_executable(src_imgs_intensity
        src_intensity.cpp
)

file(GLOB IMAGE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/**")

foreach(IMAGE_FILE ${IMAGE_FILES})
    configure_file(${IMAGE_FILE} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
endforeach()

TARGET_LINK_LIBRARIES(src_imgs_intensity ${OpenCV_LIBS})